package com.heima;

import com.heima.Serivce.WemediaMQ;
import com.heima.common.exception.RabbitMQcode;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
@Slf4j
public class test {
    @Autowired
    RabbitTemplate rabbitTemplate;

    @Autowired
    WemediaMQ wemediaMQ;
    @Test
    public void pushmassge()
    {
       wemediaMQ.pushmassge(123L,true);
        log.info("发送消息成功");
    }
}
